/*
** Test.java
** Login : <speedblue@wiki.speedblue.org>
** Started on  Wed Nov  1 20:23:07 2006 Julien Lemoine
** $Id$
** 
** Copyright (C) 2006 Julien Lemoine
** This program is free software; you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation; either version 2 of the License, or
** (at your option) any later version.
** 
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
** GNU General Public License for more details.
** 
** You should have received a copy of the GNU General Public License
** along with this program; if not, write to the Free Software
** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
package org.speedblue.util;

public class Test
{
    public static void main(String args[])
    {
      Trie test = new Trie(1024);

      try
	{
	  test.addEntry("dede", 3);
	  test.addEntry("abcd", 4);
	  test.addEntry("dada", 5);
	  test.addEntry("test3", 3);
	  test.addEntry("test1", 1);
	  test.addEntry("test2", 2);

	  test.display();

	  System.out.println(test.getEntry("abc"));
	  System.out.println(test.getEntry(""));
	  System.out.println(test.getEntry("df"));
	  System.out.println(test.getEntry("test1"));
	  System.out.println(test.getEntry("test"));
	  System.out.println(test.getEntry("t"));
	  System.out.println(test.getEntry("te"));
	  System.out.println(test.getEntry("test3"));
	  System.out.println(test.getEntry("test2"));
	}
      catch (Exception e)
	{
	  e.printStackTrace();
	}
    }
}
